window.onload = function() {
	//			选项卡切换
	var nav1 = document.getElementsByClassName('nav1')[0];
	var nav2 = document.getElementsByClassName('nav2')[0];
	var part1 = document.getElementsByClassName('part1')[0];
	var part2 = document.getElementsByClassName('part2')[0];
	nav1.onclick = function() {
		this.className = 'active';
		nav2.className = 'nav2';
		part1.style.display = "block";
		part2.style.display = "none";
	}
	nav2.onclick = function() {
		this.className = 'active';
		nav1.className = 'nav1';
		part1.style.display = "none";
		part2.style.display = "block";
	}
	var btn = document.getElementsByTagName("button")[0];
	var btn1 = document.getElementsByTagName("button")[1];
	btn.onclick = function() {
		this.style.backgroundColor = '#ffffff'
		this.style.color = '#019fe8';
		this.innerHTML = "已签到"
	}
	btn1.onclick = function() {
		this.style.backgroundColor = '#ffffff'
		this.style.color = '#019fe8';
		this.innerHTML = "已签退";
	}
}